* (bug 14063) Power search form missing <label> for redirects check
* (bug 14111) Similar filename warning links now lead to correct page
* (bug 14082) Fix for complex text input vs AJAX suggestions on some browsers
+* (bug 13693) Categories sometimes claim to have a negative number of members
=== API changes in 1.13 ===
*/
protected function initialize() {
parent::initialize();
+
+ # (bug 13683) If the count is negative, then 1) it's obviously wrong
+ # and should not be kept, and 2) we *probably* don't have to scan many
+ # rows to obtain the correct figure, so let's risk a one-time recount.
+ if( $this->mPages[0] < 0 || $this->mSubcats[0] < 0 ||
+ $this->mFiles[0] < 0 ) {
+ $this->refreshCounts();
+ }
+
if( count( $this->mNames ) != 1 || count( $this->mIDs ) != 1 ) {
return false;
}